﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;

namespace Himp.Platform
{
    /// <summary>
    /// 标准事件
    /// </summary>
    public class EventModelDict : FullAuditedAggregateRoot<Guid>, IMultiTenant
    {
        /// <summary>
        /// 模型代码
        /// </summary>
        public string EventCode { get; set; }

        /// <summary>
        /// 模型名称
        /// </summary>
        public string EventName { get; set; }

        /// <summary>
        /// 全路径
        /// </summary>
        public string TopicFullPath { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public AppTopic ProductTopic { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid ProductTopicId { get; set; }

        /// <summary>
        /// 说明
        /// </summary>
        public string? Exp { get; set; }

        /// <summary>
        /// 版本
        /// </summary>
        public int Ver { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid? TenantId { get; set; }

        public EventModelDict()
        {

        }

        public EventModelDict(string eventCode, string eventName, string topicFullPath
            , Guid productTopicId, string exp = "")
        {
            EventCode = eventCode;
            EventName = eventName;
            TopicFullPath = topicFullPath;
            ProductTopicId = productTopicId;
            Exp = exp;
            Ver = 0;
        }
    }
}
